<!--
 * @Description: 
 * @Author: MALossov
 * @Date: 2022-05-23 23:08:05
 * @LastEditTime: 2022-05-24 02:00:59
 * @LastEditors: MALossov
 * @Reference: 
-->
<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <title>MyCloudDrive</title>
    <link href="style.css" rel="stylesheet" type="text/css"/>
    <link href="disc_style.css" rel="stylesheet"/>
</head>
<script src="jquery/jquery-3.5.1.js"></script>
<script src="jquery/jquery.cookie.js"></script>
<script src="userfile.js"></script>
<script src="disc_script.es6"></script>

<body>
<div class="menu">
    <div class="logo">
        Suzuran的网盘
    </div>
    <div class="menuItems">
        <a class="menuItem" href="UsrPage.html" id="username" value=""></a>
        <a class="menuItem" id="logout" onclick="logout()">退出登录</a>
    </div>
    <img class="avatar" src="profile_mini.jpg"/>
</div>
<div class="card">
    <div class="toolbar">
        <button onclick='document.getElementById("uploadFile").click()'>上传文件</button>
        <button onclick="DownloadFile()">下载</button>
        <button onclick="DeleteFile()">删除</button>
    </div>
    <div class="filetable">
        <form action="uploadfile" enctype="multipart/form-data" method="post" style="display: none">
            <input id="uploadFile" name="myfile" onchange='document.getElementById("ulButton").click()' type="file">
            <input id="ulButton" type="submit" value="开始上传">
        </form>
        <form action="downloadfile" method="post" id="downloadaction">
            <input id="downloadFile" style="display:none" type="submit" value="下载">

            <table id="filelist">
                <tr class="tableHeader">
                    <th></th>
                    <th>文件名称</th>
                    <th>文件大小</th>
                    <th>上传时间</th>
                </tr>
            </table>

        </form>
        <form action="deletefile" method="post">
            <input id="deleteFile" name="deletefilename" style="display: none" type="submit">
            <text></text>
        </form>
    </div>
</div>
</body>

</html>